﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Concat
{
    abstract class ConcatType
    {
        public string name;

        public ConcatType(string name)
        {
            this.name = name;
        }

        public bool covers(ConcatType other)
        {
            return this == other || this.coversNotEqual(other);
        }
        public abstract bool coversNotEqual(ConcatType other);

        public override string ToString()
        {
            return name;
        }
    }
}
